import { Toast } from 'vant'

export default function getMacAddress({ vm, action, done }) {
  console.log('vm, action, done', vm, action, done)
  window.$CIMC.getMacAddress((res) => {
    if (res.code == '200') {
      console.log('mac地址---', res)
      done(null, res.data)
    } else {
      Toast('获取本机mac地址失败')
      done(null, {})
    }
  })
}
